package cn.iocoder.yudao.module.pickbook.controller.admin.userreadinghistory.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 用户阅读记录新增/修改 Request VO")
@Data
public class UserReadingHistorySaveReqVO {

    @Schema(description = "记录唯一ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11717")
    private Long id;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3787")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "书籍ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31848")
    @NotNull(message = "书籍ID不能为空")
    private Long bookId;

    @Schema(description = "是否已读完", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否已读完不能为空")
    private Integer isCompleted;

    @Schema(description = "上次阅读页码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "上次阅读页码不能为空")
    private Integer lastPage;

    @Schema(description = "总阅读时间（分钟）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "总阅读时间（分钟）不能为空")
    private Integer totalTime;

    @Schema(description = "阅读次数", requiredMode = Schema.RequiredMode.REQUIRED, example = "9194")
    @NotNull(message = "阅读次数不能为空")
    private Integer readCount;

    @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "创建者不能为空")
    private String creator;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "更新者不能为空")
    private String updater;

    @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime updateTime;

    @Schema(description = "是否删除")
    private Boolean deleted;

}